package com.worthtech.billportal.service.imp;

import java.util.List;

import com.worthtech.billportal.bean.CsAppTerminal;
import com.worthtech.billportal.bean.CsSysTerminal;
import com.worthtech.billportal.bean.WtMgrEncKey;
import com.worthtech.billportal.bean.WtMgrMerInfo;
import com.worthtech.billportal.bean.WtTermInfo;
import com.worthtech.billportal.dao.GangwaycommDAO;
import com.worthtech.billportal.dao.SaminfoDAO;
import com.worthtech.billportal.dao.SysTerminalDAO;
import com.worthtech.billportal.dao.TerminalDAO;
import com.worthtech.billportal.dao.TerminalNoTypeDAO;
import com.worthtech.billportal.service.TerminalService;

public class TerminalServiceImp implements TerminalService {
	private TerminalDAO terminalDAO;
	private TerminalNoTypeDAO terminalNoTypeDAO;
	private GangwaycommDAO gangwaycommDAO;
	private SysTerminalDAO sysTerminalDAO;
	
	
	public List getListByHQL(String tableName, int startPage, int perNo,
			String orderby) {
		return this.getTerminalDAO().getListByHQL(tableName, startPage, perNo, orderby);
	}
	public void save(CsAppTerminal terminal) {
		// TODO Auto-generated method stub
		this.getTerminalDAO().save(terminal);
	}
	public void delete(CsAppTerminal c){
		this.getTerminalDAO().delete(c);
	}
	public boolean update(CsAppTerminal terminal) {
		// TODO Auto-generated method stub
		return this.getTerminalDAO().update(terminal);
	}
	
	public String getCount(String tableName, String condition){
		return getTerminalDAO().getCount(tableName, condition);
	}
	public TerminalDAO getTerminalDAO() {
		return terminalDAO;
	}
	public void setTerminalDAO(TerminalDAO terminalDAO) {
		this.terminalDAO = terminalDAO;
	}
	public String getSeqId(String tablename){
		return this.getTerminalDAO().getSeqId(tablename);
	}
	public List getListForTerminalNoType() {
		// TODO Auto-generated method stub
		return this.getTerminalNoTypeDAO().getList();
	}
	public TerminalNoTypeDAO getTerminalNoTypeDAO() {
		return terminalNoTypeDAO;
	}
	public void setTerminalNoTypeDAO(TerminalNoTypeDAO terminalNoTypeDAO) {
		this.terminalNoTypeDAO = terminalNoTypeDAO;
	}
	public GangwaycommDAO getGangwaycommDAO() {
		return gangwaycommDAO;
	}
	public void setGangwaycommDAO(GangwaycommDAO gangwaycommDAO) {
		this.gangwaycommDAO = gangwaycommDAO;
	}
	public List getListForGangwaycomm() {
		// TODO Auto-generated method stub
		return this.getGangwaycommDAO().getList();
	}
	public SysTerminalDAO getSysTerminalDAO() {
		return sysTerminalDAO;
	}
	public void setSysTerminalDAO(SysTerminalDAO sysTerminalDAO) {
		this.sysTerminalDAO = sysTerminalDAO;
	}
	public void save(CsSysTerminal terminal) {
		// TODO Auto-generated method stub
		this.getSysTerminalDAO().save(terminal);
	}
	public boolean update(CsSysTerminal terminal) {
		// TODO Auto-generated method stub
		return this.getSysTerminalDAO().update(terminal);
	}
	public String getSumBySQL(String list, String tableName, String condition) {
		return this.getTerminalDAO().getSumBySQL(list, tableName, condition);
	}
	public void save(WtTermInfo wti) {
		this.getSysTerminalDAO().save(wti);
	}
	public void save(WtMgrEncKey wtmegkey) {
		this.getSysTerminalDAO().save(wtmegkey);
	}
	public void save(WtMgrMerInfo wtmgrmi) {
		this.getSysTerminalDAO().save(wtmgrmi);
	}
	

}
